package com.YCH.model.mappers.app;

import com.YCH.model.user.pojos.TbUser;
import com.YCH.model.user.pojos.TbUserLv;
import org.springframework.data.repository.query.Param;

public interface TbUserMapper {
    TbUser selectById(@Param("id") Long id);
    TbUser selectByApPhone(@Param("mobile")  String mobile);
    TbUser selectByApEmail(@Param("email")  String email);
    TbUser selectLvByIdDetailed(@Param("id") Long id);
    TbUser selectLvByIdSimple(@Param("id") Long id);
    Integer insert(TbUser tbUser);
    Integer update(TbUser tbUser);
    Integer updateLvById(@Param("lv") TbUserLv lv, @Param("id") Long id);
    TbUser selectNick(@Param("nick") String nick);
}